package leetcode.code0075;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution75 implements IDebug {
	public abstract void sortColors(int[] nums);

	@Override
	public void debug1() {
		String str = "[2,0,2,1,1,0]";
		int[] nums = HelpDebug.str2array3(str);
		this.sortColors(nums);
		int[] e = HelpDebug.str2array3("[0,0,1,1,2,2]");
		HelpDebug.compare(e, nums);
	}

	@Override
	public void debug2() {
		String str = "[2,0,1]";
		int[] nums = HelpDebug.str2array3(str);
		this.sortColors(nums);
		int[] e = HelpDebug.str2array3("[0,1,2]");
		HelpDebug.compare(e, nums);
	}

	@Override
	public void debug3() {
		String str = "[0]";
		int[] nums = HelpDebug.str2array3(str);
		this.sortColors(nums);
		int[] e = HelpDebug.str2array3("[0]");
		HelpDebug.compare(e, nums);
	}

	@Override
	public void debug4() {
		String str = "[1]";
		int[] nums = HelpDebug.str2array3(str);
		this.sortColors(nums);
		int[] e = HelpDebug.str2array3("[1]");
		HelpDebug.compare(e, nums);
	}
	public void debug5() {
		String str = "[2,0,2,1,1,0,0,2,1,1,0,0,2,1,1,0]";
		int[] nums = HelpDebug.str2array3(str);
		this.sortColors(nums);
		int[] e = HelpDebug.str2array3("[0,0,0,0,0,0,1,1,1,1,1,1,2,2,2,2]");
		HelpDebug.compare(e, nums);
	}

}
